* {
    padding: 0;
    margin: 0;
}
.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}
body {
    background-color: #f3f5f7;
}
.w {
    width: 1200px;
    margin: auto;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.header {
    height: 42px;
    /* 注意此处层叠问题 */
    margin: 30px auto;
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}
.nav  {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 10px;
}
.nav ul li a{
    display: block;
    font-size: 18px;
    color: #505050;
    line-height: 42px;
    padding: 0 10px;
}
.nav ul li a:hover {
    border-bottom: 2px solid aqua;
    color: blue;
}
.serch {
    float: left;
    width: 412px;   
    height: 40px;
    margin-left: 70px;
}
.serch input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    padding-left: 15px;
    font-size: 14px;
    color: #c6c7c7;
}
.serch button {
    float: left;
    width: 50px;
    height: 42px;
    /* 按钮button默认有外边框 需要手动去除 */
    border: 0px;
    /* 应为行内块元素之间会有一小点空隙，都添加浮动能解决，浮动没有空隙*/
    background: url(images/images/serch_03.png);
}
.user {
    float: right;
    line-height: 42px;
    margin-right: 60px;
    font-size: 14px;
    color: #666666;
}
.user img {
    vertical-align: middle;
}
/* banner 部分 */
.banner {
    height: 421px;
    background-color: #1c036c;
}
.banner .w {
    height: 421px;
    background: url(./images/images/banner.png) no-repeat top center;
}
.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0, 0, 0, 0.3)
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}
.subnav ul li a {
    font-size: 14px;
    color: #ffffff;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover {
    color: #00a4ff;
}
.cours {
    float: right;
    width: 229px;
    height: 300px;
    background-color: white;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}
.cours h2 {
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 18px;
    color: #ffffff;
    background-color: #9bceea;
}
.cours .bd {
    padding: 0 20px;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.bd ul li p {
    font-size: 14px;
    color: #a5a5a5;
}
.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #efefef;
}
.bd .more {
    display: block;
    border: 1px solid #00a4ff;
    font-size: 16px;
    color: #00a4ff;
    font-weight: 700;
    text-align: center;
    height: 40px;
    line-height: 40px;
    margin-top: 5px;
}
/* 精品推荐模块 */
.goods {
    height: 60px;
    background-color: #ffffff;
    margin-top: 10px;
    box-shadow: 0 1px 3px 3px rgba(0, 0, 0, 0.1);
    /*子级会继承父级的行高所以给父级行高就行*/
    line-height: 60px;
}
.goods h4 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.mods {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
.goods ul li {
    float: left;
}
.goods ul li a {
    padding: 0 35px;
    border-left: 1px solid #bfbfbf;
}
/* body部分 */
.box {
    margin-top: 30px;
}
.box-hd {
    height: 45px;
}
.box-hd h4{
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a {
    float: right;
    margin-right: 30px;
    font-size: 12px;
    color: #a5a5a5;
    /* 父级子级都是浮动元素，不用担心边框坍陷问题 */
    margin-top: 10px;
}
.box-bd ul {
    /* 把li 的父亲ul 修改的足够宽一行能装开5个盒子就不会换行了 */
    width: 1225px;
}
.box-bd ul li {
    /* 子绝父相 */
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    margin-right: 15px;
    margin-bottom: 15px; 
}
.box-bd ul li img {
    width: 100%;
}
.box-bd ul li h4 {
    display: block;
    font-size: 14px;
    color: #050505;
    margin: 20px 40px 20px 25px;
    font-weight: 400;
}
.box-bd .info {
    font-size: 12px;
    color: #999999;
    margin: 0 20px 0 25px;
}
.box-bd .info span {
    color: #ff7c2d;
}
.box-bd ul li em {
    position: absolute;
    top: 3px;
    right: -4px;
}
/* footer模块 */
.footer {
    height: 415px;
    background-color: #f7f1f1;
}
.footer .w {
    padding-top: 35px;
}
.copyleft {
    float: left;
}
.copyright {
    float: right;
}
.copyleft p {
    font-size: 12px;
    color: #666666;
    margin: 26px 0 20px 0;
}
.copyleft a {
    display: block;
    width: 188px;
    height: 35px;
    font-size: 16px;
    color: #00a4ff;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 35px;
    
}
.copyright dl {
    float: left;
    margin-left: 100px;
}
.copyright dl dt {
    font-size: 16px;
    color: #333333;
}
.copyright dl dd a{
    font-size: 12px;
    color: #333333;
}
